package com.hospital.demo.service.impl.zhangweibo;

import com.hospital.demo.mapper.zhangweibo.FinanceMapper;
import com.hospital.demo.model.zhangweibo.Finance;
import com.hospital.demo.service.zhangweibo.FinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FinanceServiceImpl implements FinanceService {
    @Autowired
    FinanceMapper financeMapper;

    @Override
    public List<Finance> SelectAllFinance() {
        return financeMapper.SelectAllFinance();
    }

    @Override
    public List<Finance> SelectById(Integer fid) {
        return financeMapper.SelectById(fid);
    }

    @Override
    public Integer UpdateFinance(Integer fnumber, Integer fid) {
        return financeMapper.UpdateFinance(fnumber,fid);
    }

    @Override
    public List<Integer> SelectFnb() {
        return financeMapper.SelectFnb();
    }
}
